package com.vpx.server.utils;

import cn.hutool.core.lang.PatternPool;
import cn.hutool.core.util.ReUtil;
import cn.hutool.core.util.XmlUtil;
import org.apache.commons.lang3.math.NumberUtils;
import org.w3c.dom.Document;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Match {
    public static void main(String[] s) {
//        String regex  ="#.+#.+#.+#.+#";
//        String content = "#dsaf#dsaf1#dsaf2#dsaf3##";
//        List<String> reqContentList = ReUtil.findAllGroup0("(#?)(.+?)(#?)", content);
//////
////        List<String> reqContentList = ReUtil.findAllGroup0("", content);
//////        ReUtil.getAllGroups()
//        for(String k:reqContentList) {
//            System.out.println(k);
//        }
////        Pattern pattern = Pattern.compile("(#?)(.+?)(#?)");
////        Matcher matcher = pattern.matcher(content);
////        while(matcher.find()) {
////            String group = matcher.group();
////            System.out.println(group);
////        }
//        String TABLE_REGEX = "#(.*?)#";
//        //2.编译正则表达式
//        Pattern patten = Pattern.compile(regex);
//
//        // 3.指定要匹配的字符串
//        Matcher matcher = patten.matcher(content);
//
//        //4.判断是否包含
//        while (matcher.find()) {
//            //获取内容
//            String group = matcher.group();
//            System.out.println("group="+group);
//        }
//        String content = "#nodeName#nodeId#attrName#attrCode#";
//        String[] contents =  content.split("#");
////        for(String t:contents) {
//            System.out.println(contents[4]);
////        }
        Document document = XmlUtil.createXml();
        document.createElement("x123");
    }
}
